package com.android.wlw_local.login;

/**
 * Created by zhuqin on 2018/1/28.
 */

public class UserStore {

    private static volatile UserStore mInstance ;

    private String username ;

    private String password ;


    private UserStore(){

    }

    public static UserStore getInstance(){
        if(mInstance == null){
            synchronized (UserStore.class){
                if(mInstance == null){
                    mInstance = new UserStore();
                }
            }
        }
        return mInstance;
    }

    public void setUserInfo(String username ,String password){
        this.username = username ;
        this.password = password ;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
